import { Entity, PrimaryColumn, PrimaryGeneratedColumn, Column, OneToMany, ManyToOne, JoinColumn, CreateDateColumn } from "typeorm"

@Entity({ name: "video_item" })
export class VideoEntity {
    /**
     * id
     */
    @PrimaryColumn()
    id: String;
    /**
    * 父节点id
    */
    @Column()
    projectId: String;
    /**
     * 名称
     */
    @Column()
    fileName: String;
    /**
    * 封面
    */
    @Column()
    thumbnail: String;
    /**
    * 视频地址
    */
    @Column()
    videoUrl: String;

    @CreateDateColumn()
    createdAt: Date;
}